package pojo;

import java.util.Date;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class NhomPOJO {
	private int id;
	private String tenNhom;
	private Date thoiGian;
	private int idNguoiTao;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTenNhom() {
		return tenNhom;
	}
	public void setTenNhom(String tenNhom) {
		this.tenNhom = tenNhom;
	}
	public Date getThoiGian() {
		return thoiGian;
	}
	public void setThoiGian(Date thoiGian) {
		this.thoiGian = thoiGian;
	}
	public int getIdNguoiTao() {
		return idNguoiTao;
	}
	public void setIdNguoiTao(int idNguoiTao) {
		this.idNguoiTao = idNguoiTao;
	}
	
	public Element createContactXMLElement(Document doc){
		Element element =doc.createElement("Nhom");
		element.setAttribute("ID", id+"");
		element.setAttribute("TenNhom", tenNhom);
		return element;
	}
	
	
}
